package com.panshi.modules.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 857
 * @since 2020-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserMember对象", description="")
public class UserMember implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "用户ID")
        @TableId(value = "id", type = IdType.AUTO)
    private Long id;

        @ApiModelProperty(value = "用户昵称")
        private String nickname;

        @ApiModelProperty(value = "密码")
        private String password;

        @ApiModelProperty(value = "手机号")
        private String phone;

        @ApiModelProperty(value = "邮箱")
        private String email;

        @ApiModelProperty(value = "个人简介")
        private String motto;

        @ApiModelProperty(value = "头像图地址")
        private String photoPath;

        @ApiModelProperty(value = "创建时间")
        @TableField(fill = FieldFill.INSERT)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

        @ApiModelProperty(value = "修改时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date updateTimne;

        @ApiModelProperty(value = "提问数量")
        private Integer questionNum;

        @ApiModelProperty(value = "回答数量")
        private Integer answerNum;

        @ApiModelProperty(value = "文章数量")
        private Integer articleNum;

        @ApiModelProperty(value = "状态:1-启用;2-禁止")
        private Integer status;


}
